package com.atguigu.gmall.feign.item;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.product.to.SkuDetailTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/api/inner/item")
@FeignClient("service-item")
public interface itemSkuDetailFeginClient {


    @GetMapping("/getSkuDetail/{skuId}")
    public Result<SkuDetailTO> getSkuDetail(@PathVariable Long skuId);
}
